FROM mcr.microsoft.com/dotnet/aspnet:8.0.6-noble-arm64v8 AS base
WORKDIR /app
EXPOSE 8001
ENV ASPNETCORE_URLS=http://+:8001
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
FROM base AS final
ENTRYPOINT ["dotnet", "Iot.dll"]

